repo.or.cz
/
andmenj-acm.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Solving 10385 - Duathlon (Ternary search)
[andmenj-acm.git]
/
10300 - Ecological Premium
/
10300.cpp
blob
4a76dc38c24ab3c1a9e11faa4a46f3e0b2aec8bd
1
#include <iostream>
2
using namespace
std
;
3
4
int
main
(){
5
int
casos
;
6
cin
>>
casos
;
7
while
(
casos
--){
8
unsigned long long
r
=
0
,
a
,
c
;
9
unsigned
i
;
10
cin
>>
i
;
11
while
(
i
--){
12
cin
>>
a
>>
c
>>
c
;
13
r
+=
a
*
c
;
14
}
15
cout
<<
r
<<
endl
;
16
}
17
}